package com.uyayo.cms.service;

import com.uyayo.cms.entity.CmsComment;
import com.uyayo.cms.entity.CmsCommentLike;
import com.uyayo.cms.model.CmsCommentBO;
import com.uyayo.cms.model.CmsCommentCondition;
import com.uyayo.cms.model.CmsCommentCountBO;
import com.uyayo.framework.common.exception.CodeMultipleException;
import com.uyayo.framework.common.exception.ParentNotFoundException;
import com.uyayo.framework.pagehelper.pojo.PageBean;

import java.util.List;

public interface CmsCommentService {


	CmsComment getCommentById(Long id);

	List<CmsComment> selectComment(CmsCommentCondition cmsCommentCondition);

	PageBean<CmsComment> selectCommentByPaging(Integer page, Integer rows, String sort, String order, CmsCommentCondition cmsCommentCondition);

    PageBean<CmsCommentBO> selectCmsCommentListByPaging(Integer pageCurrent, Integer pageSize, String sort, String order, CmsCommentCondition cmsCommentCondition);

    int createCmsComment(CmsComment cmsComment) throws CodeMultipleException, ParentNotFoundException;

	CmsComment selectOne(CmsComment cmsComment);

	int updateComment(CmsComment cmsComment);

	int deleteComment(Long id);

	int updateCommentCount(CmsCommentCountBO cmsCommentCountBO);

    int like(CmsCommentLike cmsCommentLike);
}
